﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="View.aspx.cs" Inherits="View" %>

<%@ Register assembly="GenericDataLayer" namespace="DataLayer.Generic" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <cc1:GenericObjectDataSource ID="GenericObjectDataSource1" runat="server" DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectCountMethod="Count" SelectMethod="GetEntity" TypeName="DataLayer.ProductStaticRepository" UpdateMethod="Update">
            <DeleteParameters>
<asp:Parameter Name="entity" Type="Object"></asp:Parameter>
<asp:Parameter DefaultValue="true" Name="submitChanges" Type="Boolean"></asp:Parameter>
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="entity" Type="Object"></asp:Parameter>
<asp:Parameter DefaultValue="true" Name="submitChanges" Type="Boolean"></asp:Parameter>
</UpdateParameters>
            <SelectParameters>
                <asp:QueryStringParameter Name="id" QueryStringField="ProductId" Type="Object" />
            </SelectParameters>
        </cc1:GenericObjectDataSource>
        <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataSourceID="GenericObjectDataSource1" Height="50px" Width="125px">
            <Fields>
                <asp:BoundField DataField="ProductID" HeaderText="ProductID" SortExpression="ProductID" />
                <asp:BoundField DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName" />
                <asp:BoundField DataField="SupplierID" HeaderText="SupplierID" SortExpression="SupplierID" />
                <asp:BoundField DataField="CategoryID" HeaderText="CategoryID" SortExpression="CategoryID" />
                <asp:BoundField DataField="QuantityPerUnit" HeaderText="QuantityPerUnit" SortExpression="QuantityPerUnit" />
                <asp:BoundField DataField="UnitPrice" HeaderText="UnitPrice" SortExpression="UnitPrice" />
                <asp:BoundField DataField="UnitsInStock" HeaderText="UnitsInStock" SortExpression="UnitsInStock" />
                <asp:BoundField DataField="UnitsOnOrder" HeaderText="UnitsOnOrder" SortExpression="UnitsOnOrder" />
                <asp:BoundField DataField="ReorderLevel" HeaderText="ReorderLevel" SortExpression="ReorderLevel" />
                <asp:CheckBoxField DataField="Discontinued" HeaderText="Discontinued" SortExpression="Discontinued" />
            </Fields>
        </asp:DetailsView>
    
    </div>
    </form>
</body>
</html>
